package com.ruoyi.hr.service.impl.entryexitmanage;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.hr.domain.Authority;
import com.ruoyi.hr.mapper.entryexitmanage.EntryExitManageMapper;
import com.ruoyi.hr.service.entryexitmanage.EntryExitManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class EntryExitManageServiceImpl implements EntryExitManageService {

    @Autowired
    EntryExitManageMapper entryExitManageMapper;

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> getEmpList(Map map) {
        return entryExitManageMapper.getEmpList(map);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> getContract() {
        return entryExitManageMapper.getContract();
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> entryHistory(Map map, Authority authority) {
        return entryExitManageMapper.entryHistory(map, authority);
    }
}
